import java.util.LinkedList;
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        KTVMethods ktvLinkedList=new KTVMethods();//操作方法类
        int choice;
        LinkedList<String> MusicList=new LinkedList();//音乐集合
        Scanner scanner=new Scanner(System.in);
        ktvLinkedList.initMusic(MusicList);
        ktvLinkedList.show(MusicList);
        System.out.println("请输入你要执行的操作序号");
        do{
            choice=scanner.nextInt();
            switch (choice) {
                case (0):
                    ktvLinkedList.addMusic(MusicList);
                    break;
                case (1):
                    ktvLinkedList.topMusic(MusicList);
                    break;
                case (2):
                    ktvLinkedList.musicForward(MusicList);
                    break;
                default:
                    System.out.println("请输入0-2数字");
                    break;
            }
            ktvLinkedList.show(MusicList);
            System.out.println("当前歌曲列表："+MusicList);
        } while (choice!=3);
        System.out.println("--------------------退出-----------------------");
        System.out.println("你已退出系统");

    }
}
